<?php

define('ROOT', dirname(__FILE__));
function __autoload($class)
{
	$file = ROOT.'/'.ucfirst($class).'.php';
	if(file_exists($file))
		include $file;
}
$machine = new GumballMachine(5);
echo '<pre>';print_r($machine);

$machine->insertCoin();
$machine->turnCrank();
echo '<pre>';print_r($machine);

$machine->insertCoin();
$machine->turnCrank();
$machine->insertCoin();
$machine->turnCrank();
echo '<pre>';print_r($machine);